<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div>
  <div style="top: 0; bottom: 0">
    <img style="height: 100%" src="">
  </div>
</div>
<script>
    test(function() {
        assert_equals(document.querySelector("img").offsetHeight, 1);
    }, "Inapplicable |top| and |bottom| specified style shouldn't affect height calculation");
</script>
